package com.daxt.model.dic;

/**
 * @description: 外部类型
 *
 * @author: lig
 * @date: 2022-03-08
 */
public enum ExternalType {

	TYPE_1("1","同步用户信息"), //
//	TYPE_2("2","本机minio存储"), //
//	TYPE_3("3","网络minio存储"), //
	;

	private String key;
	private String value;

	private ExternalType(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		ExternalType[] values = ExternalType.values();
		for (ExternalType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
